//
//  UIImage+Extention.h

//
//  Created by 郝俊聪 on 15/3/17.
//  Copyright (c) 2015年 heima. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Extention)

//返回从中间一小部分拉伸的图片
- (UIImage *)resizeableImage;
+ (UIImage *)resizeableImageWithImageName:(NSString *)imageName;

//将图片打水印
+ (instancetype)waterImageWithBgImageName:(NSString *)bgImageName andWaterImageName:(NSString *)waterImageName;

//将图片剪成圆形
+ (instancetype)clipCircleImageWithImageName:(NSString *)imageName;

//将图片剪成圆形，并带上圆环
+ (instancetype)clipCircleImageWithImageName:(NSString *)imageName boarderWidth:(CGFloat)boarder andBoarderColor:(UIColor *)color;

//截屏
+ (instancetype)imageOfSaveScreenWithView:(UIView *)view;

//压缩图片
- (instancetype)imageOfScaleWithWidth:(CGFloat)width;

@end
